﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="FAQ.aspx.cs" Inherits="FAQ2" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style1
        {
            font-size: 18pt;
            color: #000000;
        }
        .style2
        {
            height: 33px;
        }
        .style4
        {
            width: 919px;
            height: auto;
        }
        .style5
        {
            height: 65px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
        <table class="style4">
            <tr>
                <td class="style1">
                    <strong>FAQ<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:stockmarketConnectionString %>" 
                        
                        SelectCommand="SELECT Question.CategoryID, Category.CategoryName, Question.Question, Question.Answer FROM Category INNER JOIN Question ON Category.CategoryID = Question.CategoryID ORDER BY Question.CategoryID">
                    </asp:SqlDataSource>
                    </strong></td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label1" runat="server" Text="Search: "></asp:Label>
&nbsp;
                    <asp:TextBox ID="txtSearchString" runat="server"></asp:TextBox>
&nbsp;
                    <asp:Button ID="Button1" runat="server" Text="Search" onclick="Button1_Click" />
                </td>
            </tr>
            <tr>
                <td style="text-align: left" class="style5">
    
        <asp:TreeView ID="TreeView1" runat="server" ImageSet="Arrows" 
            ExpandDepth="1" Font-Size="Medium" ForeColor="Black" MaxDataBindDepth="3" 
                        ontreenodepopulate="TreeView1_TreeNodePopulate" Height="100%" 
                        NodeWrap="True" style="margin-top: 0px" Width="100%">
            <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
            <LeafNodeStyle NodeSpacing="5px" />
            <Nodes>
                <asp:TreeNode Text="FAQ" Value="New Node" PopulateOnDemand="True">
                </asp:TreeNode>
            </Nodes>
            <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" 
                HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
            <ParentNodeStyle Font-Bold="False" />
            <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" 
                VerticalPadding="0px" ForeColor="#5555DD" />
        </asp:TreeView>
                    <br />
                    <asp:Label ID="labelStatus" runat="server"></asp:Label>
                </td>
            </tr>
            </table>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
</asp:Content>

